package com.lhj.library.application.convert;

import com.lhj.library.application.dto.BookDTO;
import com.lhj.library.common.entity.PageResult;
import com.lhj.library.domain.entity.BookBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;


@Mapper
public interface BookDtoConverter {
    BookDtoConverter INSTANCE = Mappers.getMapper(BookDtoConverter.class);

    BookBO convertDtoToBookBo(BookDTO bookDTO);

    BookDTO convertBotoDto(BookBO bookBO);

    PageResult<BookDTO> convertBoToDtoPage(PageResult<BookBO> boPageResult);


}
